const mapConfig = {
  mapUrl: `https://t{s}.tianditu.gov.cn/{layerName}_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER={layerName}&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk={key}`,
  img: ['img', 'cia'], // 天地图影像,天地图影像注记
  vec: ['vec', 'cva'], // 矢量天地图,矢量天地图注记
  maxZoom: 18, // 天地图显示的最大级别
  subdomains: [0, 1, 2, 3, 4, 5, 6, 7], // 天地图的子域，用于URL模板中 {s} 占位符的子域
  //------- arcgis feature server 请求参数配置 ---------- 
  fsParams: {
    f: 'geojson',
    returnGeometry: true,
    spatialRel: 'esriSpatialRelIntersects',
    geometryType: 'esriGeometryEnvelope',
    inSR: 4326,
    outFields: '*',
    outSR: 4326,
    geometry: {
      xmin: 118.12499999999999,
      ymin: 29.535229562948473,
      xmax: 120.9375,
      ymax: 31.952162238024968,
      spatialReference: { wkid: 4326 }
    },
    params: {
      maxRecordCountFactor: 5
    }
  },
  //地块渲染样式配置
  sectionColor: {
    // 默认填充颜色
    defaultColor: 'rgba(255,255,255,0.3)',
    defaultLineColor: 'rgba(255,255,255,1)',
    // 选择颜色
    selectColor: 'rgba(255,255,255,.3)',
    selectLineColor: 'rgba(255,255,255,1)',
    // 悬浮颜色
    pointMoveLineColor: 'rgba(255,255,255,1)',
    pointMoveColor: 'rgba(255,255,255,0.3)',
    // 文本颜色
    textColor: 'rgba(255,255,255,1)'
  }
}

export default mapConfig
